package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class PersonTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class PersonTest
{
    /**
     * Default constructor for test class PersonTest
     */
    public PersonTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void TestingAddressBook()
    {
        ModelLayer.AddressBook addressB1 = new ModelLayer.AddressBook();
        ModelLayer.Person person1 = new ModelLayer.Person(123, "Hans", "Hovenegn", "1243", "Aalborg", "782178218");
        ModelLayer.Person person2 = new ModelLayer.Person(321, "Poul", "Himmelvej", "1213", "Broenderslev", "9129219");
        ModelLayer.Person person3 = new ModelLayer.Person(1, "Kristian", "ahdwivej", "6178", "Kbh", "12778217");
        addressB1.addPerson(person1);
        addressB1.addPerson(person2);
        addressB1.addPerson(person3);
        addressB1.removePerson(1);
    }
}

